JMNewAppletViewer
Instantiates an applet.
OSStatus JMNewAppletViewer ( JMAppletViewerRef* viewer, JMAWTContextRef context, JMAppletLocatorRef locatorRef, UInt32 appletIndex, const JMAppletSecurity* security const JMAppletViewerCallbacks* callbacks, JMClientData data);
viewer
- A pointer to an applet. On return, this parameter is the newly instantiated applet.
context
- The AWT context associated with the applet.
locatorRef
- The applet locator containing the applet.
appletIndex
- The index of the applet to instantiate.
security
- A pointer to the applet security structure. See "Applet Security Structure" for more information.
callbacks
- A pointer to the applet viewer callbacks structure. See "Applet Callbacks Structure" for more information.
data
- Optional client-specific data.
- function result
- A result code; see "JManager Result Codes".
DISCUSSION
To instantiate an applet, you must first create an AWT context (and start the thread associated with it) and create an applet locator. TheappletIndex
value is an index number from 0 toappletCount
-1, whereappletCount
is determined by theJMCountApplets
function.SEE ALSO
"Instantiating Applets".The
JMCountApplets
function.The
JMDisposeAppletViewer
function.